<layout name="layout" />
<div class="main-div">
    <form name="main_form" method="POST" action="__SELF__" >
        <table cellspacing="1" cellpadding="3" width="100%">
            <tr>
                <td class="label">添加分类</td>
                <td>
                    <select name="parent_id">
                             <option class="label" value="0">顶级分类</option>
                        <foreach name="catdata" item="v">
                            <option value="{$v['id']}"><?php echo str_repeat('-',8*$v['level']).$v['cat_name']; ?></option>
                            </foreach>
                    </select>
                </td>
            </tr>
            
            <tr>
                <td class="label"> 分类名称： </td>
                <td>
                  <input  type="text" name="cat_name" value="" />
                </td>
            </tr>

            <tr>
                <td class="label">推荐到楼层：</td>
                <td>
                    <input type="radio" name="is_floor" value="是"/>是
                    <input type="radio" name="is_floor" value="否" checked="checked"/>否
                </td>
            </tr>

            <tr>
                <td colspan="99" align="center">
                    <input type="submit" class="button" value=" 确定 " />
                    <input type="reset" class="button" value=" 重置 " />
                </td>
            </tr>
        </table>
    </form>
</div>


<script>
</script>